﻿namespace Tombstoner.View
{
    using Microsoft.Phone.Controls;

    using WP7Contrib.View.Controls.Tombstoner;

    public partial class PivotExample : PhoneApplicationPage
    {
        public PivotExample()
        {
            InitializeComponent();

            this.Loaded += (sender, args) => this.RestoreState();
        }

        protected override void OnNavigatedFrom(System.Windows.Navigation.NavigationEventArgs e)
        {
            base.OnNavigatedFrom(e);

            this.PersistState();
        }
    }
}